home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 September / Chip_2000-09_cd1.bin / sharewar / Slunec / app / 16 / MOD.SWG / 0059_AMS Extreme Tracker v1.3.pas < prev    next >
Pascal/Delphi Source File  |  1997-05-11  |  3KB  |  94 lines

  1.  
  2.  
  3.                 ─────  Extreme's Tracker. AMS Format v1.3 ──────
  4.  
  5.                             - MIDI isn't included -
  6.  
  7. Offs   Byte(s)    Desc
  8.  
  9. [Header]
  10. 0    7    Header: "Extreme"
  11. 7    2    Version of format (Hi = MainVer, Low = SubVer eg. 0100 = 1.0)
  12. 9    1    cccsssss
  13.         c = Nr of Commands used in tune,
  14.         s = Nr of Sample channels-1 used in tune (0-31)
  15. 10    1    Nr of Samples (0-255)
  16. 11    2    Nr of Patterns (1-65535)
  17. 13    2    Nr of Positions (1-65535)
  18. 15      1       Nr of Virtual MIDI channels (0-31)*
  19. 16    2    Nr of extra bytes
  20.     x    Virtual MIDI Channel Info.**
  21.     x    Extra bytes for future use.
  22.  
  23. *  Channels may be duplicated so you can play several notes on the
  24.    same channel, this means that you can have more than 16 MIDI channels.
  25.    (Actually the same amount as the polyphony of the Synth.) Max 32.
  26. ** The numbers represents REAL MIDI channels, the position VIRTUAL channels.
  27.    e.g: 0,1,2,2,3,4,5,6,7,7,7,8,9,9
  28.    That means that you use 10 real MIDI channels, but you play more that one
  29.    note one some. The size of the table is the same as Nr of MIDI Channels
  30.  
  31.  
  32. [Sample]
  33.     4    Length Of Sample
  34.     4    Repeat Start for sample
  35.     4    Repeat End for sample
  36.     1    Hi Nibble=PanPosition, Lo Nibble=FineTuneValue
  37.     2    SampleRate for C-2 (normally 8363Hz)
  38.     1    Volume (0-127) MIDI Compatible
  39.     1    Info Byte 76543210  If set to 1:
  40.               ││││││└┴─ Packing Method
  41.               │└┴┴┴┴─── Unused
  42.               └──────── 16 bit sample
  43.  
  44.  Data for rest of samples are exactly the same!
  45.  
  46. [Names]
  47.     1    Length of ModName (max 30 bytes)
  48.     x    ModName
  49.     1    Length of SampName (max 30 bytes)
  50.     x    SampName(s)
  51.     1    Length of ChannelName (max 11 bytes)
  52.     x    ChannelName(s)
  53.     1    Length of PatternName (max 10 bytes)
  54.     x    PatternName(s)
  55.     2    Length of Description (max 65535 bytes)
  56.     x    Description of Module
  57.  
  58.  The Number of SampleNames are equal to nr of Samples used
  59.  The Number of ChannelNames are equal to nr of Channels used
  60.  The Number of PatternNames are equal to nr of Patterns used
  61.  
  62. [PatternOrder]
  63.     x    PatternNr. Holds number (0-65535) to tell the tracker what
  64.         pattern to play at that position
  65.  
  66. [PatternData]
  67.     4    PatternSize (packed)
  68.     x    PatternData
  69.  
  70.         fpmiiiii eppppppp ssssssss [rgcccccc bbbbbbbb...]
  71.  
  72.         Legend:
  73.                 f       1=Last data chunk on the row.
  74.                 p       0=Only Read Period+SampleNr, 1=Only Read Command
  75.                 m       0=Sample Channel, 1=MIDI channel
  76.                 i       Channel (Samp 0-31, MIDI 0-15)
  77.                 e       1=Read one command
  78.         p    Period. Note 12-108 (C-0 to B-7)
  79.                 s       SampleNr (0-255)
  80.                 r       1=Read one more command
  81.                 g       1=Low 6 bits are volume/2
  82.                 c       Command-nr
  83.                 b       Command-byte
  84.  
  85.         If g is set, the command only consist of that byte and
  86.         the low 6 bits are assumed to be a volume command. You
  87.         have to multiply the volume by 2 to get the proper value
  88.                 (Volume will only be stored this way if it's dividible with 2)
  89.  
  90. [Samples]
  91.     All samples stored after eachother, packed with a special packing
  92.         method. (if packing option is on in Options) Not described here!
  93.  
  94.